const mongoose = require('mongoose')
require('../connect')

const Schema = mongoose.Schema


const postsModelSchema = new Schema({
    _id:"String",
    title:"String",
    type:"String",
    content:"String",
    arouth:"String",
    collect:{
        type:"Number",
        default:0
    },
    giveup:{
        type:"Number",
        default:0
    },
    look:{
        type:"Number",
        default:0
    },
    addTime:"String",
    name:"String",
    comment:[],

})

const postsModel = mongoose.model('posts',postsModelSchema)

module.exports = postsModel